﻿<%@ Page Title="" Language="C#" MasterPageFile="BasicBase.master" AutoEventWireup="true"
    CodeFile="DeviceSearch.aspx.cs" Inherits="BasicBase_DeviceSearch" StylesheetTheme="Content" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script type="text/javascript">
        function PopWin() {
            var yfs = window.showModalDialog("SelectDepartment.aspx");
            if (yfs != null) {
                var ss;
                ss = yfs.split("*");

                window.document.getElementById("ctl00$ContentPlaceHolder1$txtName").value = ss[0];
                window.document.getElementById("ctl00$ContentPlaceHolder1$txtVaule").value = ss[1];
            }
            

        }
       
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <%--   <ajaxToolkit:CascadingDropDown ID="CascadingDropDown_Department" 
    runat="server" Category="Department"
        LoadingText="[加载...]" PromptText="" ServiceMethod="GetDepartments" ServicePath="../Services/DepartmentService.asmx"
        TargetControlID="DepartmentList">
    </ajaxToolkit:CascadingDropDown>
    <ajaxToolkit:CascadingDropDown ID="CascadingDropDown_Unit" runat="server" Category="Unit"
        LoadingText="[加载...]" ParentControlID="DepartmentList" PromptText="" ServiceMethod="GetUnits"
        ServicePath="../Services/DepartmentService.asmx" 
    TargetControlID="UnitList"> </ajaxToolkit:CascadingDropDown>--%>
    <ajaxToolkit:CalendarExtender ID="CalendarExtender_DatePurchaseStart" TargetControlID="DatePurchaseStart"
        Animated="false" runat="server" Format="yyyy-MM-dd">
    </ajaxToolkit:CalendarExtender>
    <ajaxToolkit:CalendarExtender ID="CalendarExtender_DatePurchaseEnd" TargetControlID="DatePurchaseEnd"
        Animated="false" runat="server" Format="yyyy-MM-dd">
    </ajaxToolkit:CalendarExtender>
    <ajaxToolkit:CalendarExtender ID="CalendarExtender_DateUseStart" TargetControlID="DateUseStart"
        Animated="false" runat="server" Format="yyyy-MM-dd">
    </ajaxToolkit:CalendarExtender>
    <ajaxToolkit:CalendarExtender ID="CalendarExtender_DateUseEnd" TargetControlID="DateUseEnd"
        Animated="false" runat="server" Format="yyyy-MM-dd">
    </ajaxToolkit:CalendarExtender>
    <ajaxToolkit:CalendarExtender ID="CalendarExtender_DateProductStart" TargetControlID="DateProductStart"
        Animated="false" runat="server" Format="yyyy-MM-dd">
    </ajaxToolkit:CalendarExtender>
    <ajaxToolkit:CalendarExtender ID="CalendarExtender_DateProductEnd" TargetControlID="DateProductEnd"
        Animated="false" runat="server" Format="yyyy-MM-dd">
    </ajaxToolkit:CalendarExtender>
    <ajaxToolkit:NumericUpDownExtender ID="NumericUpDownExtender_DeviceCount" TargetControlID="DeviceCount"
        Step="10" Minimum="0" Maximum="999" Width="126" runat="server">
    </ajaxToolkit:NumericUpDownExtender>
    <ajaxToolkit:NumericUpDownExtender ID="NumericUpDownExtender_Price" TargetControlID="Price"
        Step="1000" Minimum="0" Maximum="99999999" Width="126" runat="server">
    </ajaxToolkit:NumericUpDownExtender>
    <table cellspacing="0" cellpadding="0" width="100%" class="intable">
        <caption>
            <asp:Label ID="ActionTitle" runat="server"></asp:Label></caption>
        <tr>
            <td class="title" style="width: 120px">
                单位名称：
            </td>
            <td>
                <%--<asp:UpdatePanel runat="server" ID="UpdatePanel1">
                    <ContentTemplate>
                        <asp:DropDownList ID="DepartmentList" runat="server" AutoPostBack="True" DataTextField="ShortName"
                            DataValueField="DepartmentID" OnTextChanged="DepartmentList_TextChanged" Width="20%"
                            AppendDataBoundItems="True">
                            <asp:ListItem Value="">-------单位-----------------</asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="UnitList" runat="server" DataTextField="FullName" DataValueField="DepartmentID"
                            Width="43%" AppendDataBoundItems="True">
                            
                        </asp:DropDownList>
                    </ContentTemplate>
                </asp:UpdatePanel>--%>
                <textarea cols="50" runat="server" id="txtName" readonly="readonly" rows="5" style="width: 400px"></textarea>
                <input type="hidden" runat="server" id="txtVaule" />
                <a href="#" onclick="PopWin()">选择</a>
            </td>
        </tr>
        <tr>
            <td class="title">
                装备类别：
            </td>
            <td>
                <asp:UpdatePanel runat="server" ID="upl2">
                    <ContentTemplate>
                        <asp:DropDownList ID="DeviceTypeList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DeviceTypeList_SelectedIndexChanged"
                            Width="20%" AppendDataBoundItems="True">
                            <asp:ListItem Value="" Text="-------类型-----------------"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="DeviceClassList" runat="server" Width="43%" AppendDataBoundItems="True">
                        </asp:DropDownList>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td class="title">
                装备名称：
            </td>
            <td>
                <asp:TextBox ID="DeviceName" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="title">
                装备型号：
            </td>
            <td>
                <asp:TextBox ID="DeviceModel" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="title">
                装备数量：
            </td>
            <td>
                <asp:DropDownList ID="DeviceCountList" runat="server">
                    <asp:ListItem Value="&gt;">大于</asp:ListItem>
                    <asp:ListItem Value="&gt;=" Selected="True">大于等于</asp:ListItem>
                    <asp:ListItem Value="&lt;">小于</asp:ListItem>
                    <asp:ListItem Value="&lt;=">小于等于</asp:ListItem>
                    <asp:ListItem Value="!=">不等于</asp:ListItem>
                    <asp:ListItem Value="=">等于</asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox ID="DeviceCount" runat="server" Width="120px"></asp:TextBox>
                <asp:DropDownList ID="UnitNameList" runat="server" AppendDataBoundItems="True">
                    <asp:ListItem Value="">--单位--</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="title">
                性能参数：
            </td>
            <td>
                <asp:TextBox ID="Parameters" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="title">
                购入价格：
            </td>
            <td>
                <asp:DropDownList ID="PriceList" runat="server">
                    <asp:ListItem Value="&gt;">大于</asp:ListItem>
                    <asp:ListItem Value="&gt;=" Selected="True">大于等于</asp:ListItem>
                    <asp:ListItem Value="&lt;">小于</asp:ListItem>
                    <asp:ListItem Value="&lt;=">小于等于</asp:ListItem>
                    <asp:ListItem Value="!=">不等于</asp:ListItem>
                    <asp:ListItem Value="=">等于</asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox ID="Price" runat="server" Width="120px"></asp:TextBox>
                (人民币：元)
            </td>
        </tr>
        <tr>
            <td class="title">
                购入日期：
            </td>
            <td>
                <asp:TextBox ID="DatePurchaseStart" runat="server" Width="120px"></asp:TextBox>
                至
                <asp:TextBox ID="DatePurchaseEnd" runat="server" Width="120px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="title">
                使用日期：
            </td>
            <td>
                <asp:TextBox ID="DateUseStart" runat="server" Width="120px"></asp:TextBox>
                至
                <asp:TextBox ID="DateUseEnd" runat="server" Width="120px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="title">
                出厂日期：
            </td>
            <td>
                <asp:TextBox ID="DateProductStart" runat="server" Width="120px"></asp:TextBox>
                至
                <asp:TextBox ID="DateProductEnd" runat="server" Width="120px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="title">
                生产厂家：
            </td>
            <td>
                <asp:TextBox ID="Manufacturer" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="title">
                装备状态：
            </td>
            <td>
                <asp:DropDownList ID="StateList" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="title">
                照片：
            </td>
            <td>
                <asp:RadioButtonList ID="ImageList" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Text="全部" Selected="True" Value=""></asp:ListItem>
                    <asp:ListItem Text="有照片" Value="1"></asp:ListItem>
                    <asp:ListItem Text="无照片" Value="0"></asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="title">
            </td>
            <td>
                <asp:Button ID="ButtonSearch" runat="server" OnClick="ButtonSearch_Click" Text="查询" />
                <input id="ButtonCancel" class="button_default" type="button" value="取消" onclick="window.location='DeviceList.aspx';" />
            </td>
        </tr>
    </table>
</asp:Content>
